﻿  var bzHour = 0;//<%=hh.Hours %>;
  var bzMinutes = 0; //<%=hh.Minutes %>;
  var bzSecond = 0; //<%=hh.Seconds %>;
    function timer_tick() {
        if (bzSecond >=59) {
            if (bzMinutes >=59) {
                if (bzHour >=23) {
                    bzHour = 0;
                    bzMinutes = 0;
                    bzSecond = 0;
                } else {
                    bzHour++;
                    bzMinutes = 0;
                    bzSecond = 0;
                }
            } else {
                bzMinutes++;
                bzSecond = 0;
            }
        } else {
            bzSecond++;
        }
        document.getElementById('boxTimer').innerHTML = "  " + get_format_HMS(bzHour) + " : " + get_format_HMS(bzMinutes) + " : " + get_format_HMS(bzSecond);
    }
function get_format_HMS(a) {
    if (a < 10) return "0" + a;
    else return a + "";
}